package xjtu.sad.zbsj.task.annotater.labelTask;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class MarkInfo {
    private Integer markId; //标注id
    private Integer contentId;//内容id

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date startTime;// 开始时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date endTime;// 结束时间

    private Boolean warning = false; // 是否异常,true异常,false正常
    private String status;// 该样本标注状态
    private Integer update = 0;// 是否更新,默认返回0,更新设为1,原来为标注新加设为2
    private String useTime;// 本次标注用时

    private TaskContent taskContent; // 标注任务样本内容

    private List<MarkDetail> markDetailList; // 用户标注详情

    public String getUseTime() {
        return useTime;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    public Integer getUpdate() {
        return update;
    }

    public void setUpdate(Integer update) {
        this.update = update;
    }

    public Boolean getWarning() {
        return warning;
    }

    public void setWarning(Boolean warning) {
        this.warning = warning;
    }

    public List<MarkDetail> getMarkDetailList() {
        return markDetailList;
    }

    public void setMarkDetailList(List<MarkDetail> markDetailList) {
        this.markDetailList = markDetailList;
    }

    public Integer getContentId() {
        return contentId;
    }

    public void setContentId(Integer contentId) {
        this.contentId = contentId;
    }

    public Integer getMarkId() {
        return markId;
    }

    public void setMarkId(Integer markId) {
        this.markId = markId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public TaskContent getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(TaskContent taskContent) {
        this.taskContent = taskContent;
    }

    @Override
    public String toString() {
        return "MarkInfo{" +
                "markId=" + markId +
                ", contentId=" + contentId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", warning=" + warning +
                ", status='" + status + '\'' +
                ", taskContent=" + taskContent +
                ", markDetailList=" + markDetailList +
                '}';
    }
}
